<div class="layui-form-item">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend style="display: block">{$index+1}.{$label}</legend>
    </fieldset>
    {foreach $list as $i=>$l}
    <div class="layui-input-block">
        <input type="radio"  name="{$name}" {eq name="$i" value="0"}required{/eq}  id="q{$index}_{$i}" value="{$l['name']}" title="{$l['name']}">
    </div>
    {/foreach}
</div>